package com.fuchuang.seckillsystem.mapper;

import com.fuchuang.seckillsystem.entity.Account;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface AccountMapper {
    
    int insert(Account record);
    
    int updateByPrimaryKeySelective(Account record);
    
    //获取用户账户信息
    Account selectAccountByUserId(@Param("userId") Integer userId);
    
    //更新银行账户余额
    Integer updateBankAccount(@Param("payPrice") BigDecimal payPrice);
    
    void insertAll(@Param("list") List<Account> list);
}